const routeNameMap = {
  '/home': 'EHS',

  '/home/examAddForm': '新增考试',
  '/home/examing': '考试',
  '/home/examList': '考试列表',
  '/home/preExamName': '考试预设名',

  '/home/myExamList': '我的考试列表',
  '/home/myInfo': '个人信息',
  '/home/myResetPsw': '重置密码',

  '/home/practiceAddForm': '新增练习',
  '/home/practiceList': '练习列表',

  '/home/questAddForm': '新增题目',
  '/home/questClass': '题目类别',
  '/home/questList': '题目列表',

  '/home/testAddForm': '新增试卷',
  '/home/testClass': '试卷类别',
  '/home/testList': '试卷列表',
}

export const getRouteName = function (path, hasId) {
  if (path.indexOf('/home/examing') > -1) {
    return routeNameMap['/home/examing']
  }
  return routeNameMap[path]
}
